<!--
 * @Author: your name
 * @Date: 2021-10-14 10:09:41
 * @LastEditTime: 2021-11-29 17:53:12
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \mustache_lk\www\index.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- 你好，vue{{a}} -->
        你好，vue{{b.m.n}}
        <input type="text" v-model="b.m.n">
        <ul>
            <li>A</li>
            <li>B</li>
            <li>C</li>
        </ul>
    </div>
    <script src="./xuni/task/bundle.js"></script>
    <script>
        let vm = new Vue({
            el: '#app',
            data: {
                a: 10,
                b: {
                    m: {
                        n: 7
                    }
                }
            },
            create() {
                console.log('create - 生命周期函数');
            },
            watch: {
                a() {
                    console.log('a被修改了-- watch ：', this.a);
                }
            }
        })
        vm.a = 11
    </script>

</body>

</html>